package com.ccp.dev.im.model;

import com.ccp.dev.core.basic.model.BaseModel;

/**
 * 群表 im_room
 *
 * @author y
 * @date 2020-02-17 11:39:36
 */
public class ImRoom extends BaseModel<ImRoom> {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;
    /**
     * 群名
     */
    private String roomName;

    /**
     * 群名 layim用的群名属性
     */
    private String groupname;
    /**
     * 头像
     */
    private String avatar;
    /**
     * 好友id
     */
    private String userId;
    /**
     * 群描述
     */
    private String description;
    /**
     * 是否禁言：0否 1是
     */
    private Integer status;

    /**
     * 创建群聊时候添加的人员ID 用,分隔
     */
    private String[] initUserIds;

    /**
     * 不禁言
     */
    public static int TYPE_STATUS_NO = 0;

    /**
     * 禁言
     */
    public static int TYPE_STATUS_JIN = 1;

    /**
     * 群主名称
     */
    private String owner;


    /**
     * 添加人员时候群内发送的消息内容
     */
    private String addUserContent;

    /**
     * 初始化群内人员名称
     */
    private String[] initUserNames;

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGroupname() {
        return this.groupname;
    }

    public void setGroupname(String groupname) {
        this.groupname = groupname;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getAvatar() {
        return this.avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getStatus() {
        return this.status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String[] getInitUserIds() {
        return initUserIds;
    }

    public void setInitUserIds(String[] initUserIds) {
        this.initUserIds = initUserIds;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getAddUserContent() {
        return addUserContent;
    }

    public void setAddUserContent(String addUserContent) {
        this.addUserContent = addUserContent;
    }

    public String[] getInitUserNames() {
        return initUserNames;
    }

    public void setInitUserNames(String[] initUserNames) {
        this.initUserNames = initUserNames;
    }

    @Override
    public String toString() {
        return "ImRoom{" +
                "id='" + id + "," +
                "groupname='" + groupname + "," +
                "avatar='" + avatar + "," +
                "userId='" + userId + "," +
                "description='" + description + "," +
                "status='" + status + "," +
                '}';
    }

}
